package com.wunong.smart.collection.application.request;

import com.wunong.smart.collection.client.param.CancelCollectionParam;
import com.wunong.smart.domain.platform.common.BaseRequest;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class BaseCollectionRequest extends BaseRequest {

    /**
     * 用户编号
     */
    protected Long userId;

    /**
     * 收藏编号
     */
    protected Long collectionId;

    public void init(CancelCollectionParam param) {
        this.initBasic(param);
        this.setUserId(param.getUserId());
        this.setCollectionId(param.getCollectionId());
    }

}
